package edu.njfu.activitybootmode

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button

class SingleInstanceActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_single_instance)

        val button9=findViewById<Button>(R.id.button9)
        button9.setOnClickListener {
            val intent = Intent(this,StandardActivity::class.java)
            startActivity(intent)
        }

        val button10=findViewById<Button>(R.id.button10)
        button10.setOnClickListener {
            //val intent = Intent(this,SingleTaskActivity::class.java)
            //startActivity(intent)
            Log.d("SingleInstanceActivity","TaskId is $taskId ");
        }

        val button11=findViewById<Button>(R.id.button11)
        button11.setOnClickListener {
            val intent = Intent(this,SingleTaskActivity::class.java)
            startActivity(intent)
        }
        val button12=findViewById<Button>(R.id.button12)
        button12.setOnClickListener {
            val intent = Intent(this,SingleTopActivity::class.java)
            startActivity(intent)
        }
    }
}